package com.itheima.strategy;

/**
 * @author zzw
 * @date 2025/10/25
 * @description 策略模式（环境类）
 */
public class SalesMan {

    // 持有抽象策略角色的引用
    private final Strategy strategy;

    public SalesMan(Strategy strategy) {
        this.strategy = strategy;
    }

    // 向客户展示促销活动
    public void SalesManShow() {
        strategy.show();
    }
}
